<?php

namespace App\Models;

use App\Enums\OrderStatus;
use BenSampo\Enum\Traits\CastsEnums;

/**
 * @mixin IdeHelperMergeOrder
 */
class MergeOrder extends BaseModel
{
    use CastsEnums;

    protected $casts = [
        'status' => OrderStatus::class,
    ];

    public function items()
    {
        return $this->hasMany(MergeOrderItem::class, 'merge_order_id');
    }
}
